package com.site.wisdom_construction.service.safetyModule;

import com.site.wisdom_construction.dao.safetyModule.SafetyRiskSourceDao;
import com.site.wisdom_construction.entity.safetyModule.SafetyRiskSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/13
 * @Description
 */
@Service
public class SafetyRiskSourceService implements SafetyRiskSourceDao {
    @Autowired
    private SafetyRiskSourceDao safetyRiskSourceDao;

    @Override
    public int insertSafetyRiskSource(Map map) {
        return safetyRiskSourceDao.insertSafetyRiskSource(map);
    }

    @Override
    public int deleteSafetyRiskSource(Map map) {
        return safetyRiskSourceDao.deleteSafetyRiskSource(map);
    }

    @Override
    public int updateSafetyRiskSource(Map map) {
        return safetyRiskSourceDao.updateSafetyRiskSource(map);
    }

    @Override
    public List<SafetyRiskSource> findSafetyRiskSourceByPage(Map map) {
        return safetyRiskSourceDao.findSafetyRiskSourceByPage(map);
    }

    @Override
    public long Total(Map map) {
        return safetyRiskSourceDao.Total(map);
    }

    @Override
    public List<SafetyRiskSource> selectSafetyRiskSource(Map map) {
        return safetyRiskSourceDao.selectSafetyRiskSource(map);
    }
}
